package net.lanelife.casino.caipiao.dto.admin;

import javax.validation.constraints.NotNull;

import net.lanelife.casino.common.dto.PersistentDTO;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.NumberFormat;

public class PaymentMerchantUpdateDTO extends PersistentDTO<Integer> {

	private static final long serialVersionUID = -6780450296577466923L;

	@NotNull
	private Integer id;
	
	@NotNull
	private Integer platformId;
	
	@NotBlank
	@Length(min = 1, max = 10)
	private String merchantNo;
	
	@NotBlank
	@Length(min = 1, max = 10)
	private String terminalNo;
	
	@NotBlank
	@Length(min = 1, max = 10)
	private String merchantName;
	
	@NotBlank
	@Length(min = 1, max = 100)
	private String key;
	
	@NotNull
	private Double feePercent;
	
	@NotNull
	@NumberFormat(pattern = "0.##")
	private Double currentBalance;
	
	@NotNull
	@NumberFormat(pattern = "0.##")
	private Double warningAmount;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPlatformId() {
		return platformId;
	}

	public void setPlatformId(Integer platformId) {
		this.platformId = platformId;
	}

	public String getMerchantNo() {
		return merchantNo;
	}

	public void setMerchantNo(String merchantNo) {
		this.merchantNo = merchantNo;
	}

	public String getTerminalNo() {
		return terminalNo;
	}

	public void setTerminalNo(String terminalNo) {
		this.terminalNo = terminalNo;
	}

	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public Double getFeePercent() {
		return feePercent;
	}

	public void setFeePercent(Double feePercent) {
		this.feePercent = feePercent;
	}

	public Double getCurrentBalance() {
		return currentBalance;
	}

	public void setCurrentBalance(Double currentBalance) {
		this.currentBalance = currentBalance;
	}

	public Double getWarningAmount() {
		return warningAmount;
	}

	public void setWarningAmount(Double warningAmount) {
		this.warningAmount = warningAmount;
	}
	
}
